package com.mz.mattress.client.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.mz.mattress.api.common.Result;
import com.mz.mattress.api.entity.MemberCard;
import com.mz.mattress.client.api.req.MemberCardReq;

import java.util.List;

public interface MemberCardService {

    //我的卡券
    Result<IPage<MemberCard>> listPage(MemberCardReq req);

    //当前订单已发放的卡项
    Result<List<MemberCard>> list(Long orderId);

    Result<MemberCard> getById(Integer id);

    Result sendCard(Integer id, Long memberId);

    /**
     * 核销卡项
     * @param id
     * @param memberId
     * @return
     */
    Result check(Integer id, Long memberId);

}
